package cn.geewallet.exception;

/**
 * 异常抽象类
 */
public class GeewalletClientException extends Exception {

	private static final long serialVersionUID = 2566087783987900120L;

	private String errorCode;

	public GeewalletClientException(String message) {
		super(message, null);
	}

	public GeewalletClientException(String message, Throwable e) {
		super(message, e);
	}
	
	public GeewalletClientException(String errorCode, String message) {
		super(message, null);
		this.errorCode = errorCode;
	}

	public GeewalletClientException(String errorCode, String message, Throwable e) {
		super(message, e);
		this.errorCode = errorCode;
	}

	public String getStatusCode() {
		return errorCode;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(super.toString());
		return sb.toString();
	}
}
